<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
	pageContext.setAttribute("basePath",basePath);
	//设置缓存为空
  	response.setHeader("Pragma","No-cache");
  	response.setHeader("Cache-Control","no-cache");
  	response.setDateHeader("Expires",   0);
%>
<c:set var="ctxPath" value="${pageScope.basePath}"/>
<script type="text/javascript">
//根目录应用参数
var CONTEXT = {
	//js系统访问路径
	contextPath:  "${pageScope.basePath}"
};
</script>